package org.binglan.youziyuepai.service.impl;

import org.binglan.youziyuepai.entity.School;
import org.binglan.youziyuepai.mapper.SchoolMapper;
import org.binglan.youziyuepai.service.SchoolService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 高校表 服务实现类
 * </p>
 *
 * @author sanjin
 * @since 2019-04-09
 */
@Service
public class SchoolServiceImpl extends ServiceImpl<SchoolMapper, School> implements SchoolService {

    @Transactional(propagation = Propagation.SUPPORTS)
    @Override
    public School querySchoolById(Integer schoolId) {
        return getById(schoolId);
    }

    @Transactional(propagation = Propagation.SUPPORTS)
    @Override
    public List<School> querAllSchool() {
        return list(null);
    }
}
